package com.yqya.springboot.shutdown;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import lombok.extern.slf4j.Slf4j;

/**
 * 应用入口
 *
 * @author Kevin
 * @date 2019-07-30
 */
@SpringBootApplication
@Slf4j
public class ShutdownApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ShutdownApplication.class, args);
        Object webServerFactory = run.getBean("webServerFactory");
        log.info("++++++ " + webServerFactory);
    }

}
